#pragma once
#include <stdio.h>

#define LOG_WARNING(format, ...) fprintf(stderr, "[WARNING] %s(%d): " format "\n", __func__, __LINE__, ##__VA_ARGS__)
#define LOG_FATAL(format, ...) fprintf(stderr, "[FATAL] %s(%d): " format "\n", __func__, __LINE__, ##__VA_ARGS__)
#ifdef DEBUG
    #define LOG_DETAIL(format, ...) fprintf(stdout, "[DETAIL] %s(%d): " format "\n", __func__, __LINE__, ##__VA_ARGS__)
#else
    #define LOG_DETAIL(format, ...)
#endif